network functions in network theory